package com.treasury.glasses.service;

import com.treasury.glasses.domain.ActivityLog;
import com.treasury.glasses.domain.ProgramUser;
import com.treasury.glasses.persistence.DataSource;

/**
 * Service class for the SettingsController.
 * @author <a href="mailto:glasses@audienz.eu">Jean-Luc Burot</a>
 */

public class SettingsService {
    private final DataSource dataSource = DataSource.getInstance();
    
    /**
     * Saves the changes of the ProgramUser.
     * @param programUser 
     */
    public final void saveProgramUser(final ProgramUser programUser) {
        this.dataSource.save(programUser);
    }
    
    /**
     * Creates an ActivityLog.
     * @param activityLog ActivityLog
     */
    public final void createActivityLog(final ActivityLog activityLog) {
        this.dataSource.save(activityLog);
    }
}
